package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.AdminInvoice;
import com.ygqh.baby.po.AdminInvoiceExample;



import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AdminInvoiceMapper {
    int countByExample(AdminInvoiceExample example);

    int deleteByExample(AdminInvoiceExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AdminInvoice record);

    int insertSelective(AdminInvoice record);

    List<AdminInvoice> selectByExample(AdminInvoiceExample example);

    AdminInvoice selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AdminInvoice record, @Param("example") AdminInvoiceExample example);

    int updateByExample(@Param("record") AdminInvoice record, @Param("example") AdminInvoiceExample example);

    int updateByPrimaryKeySelective(AdminInvoice record);

    int updateByPrimaryKey(AdminInvoice record);
    
    int countSuper(@Param ("q") String q,@Param ("applyPerson") String applyPerson,@Param ("startDate") Date startDate,@Param ("endDate") Date endDate,
                   @Param("invoiceTitle") String invoiceTitle);
    
    List<AdminInvoice> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q,@Param ("applyPerson") String applyPerson,
                                   @Param ("startDate") Date startDate,@Param ("endDate") Date endDate,
                                   @Param("invoiceTitle") String invoiceTitle);

	Boolean isExistInvoice(@Param ("id")Long id, @Param ("invoiceNo")String invoiceNo);
}